<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace addons\news\model;

/**
 * Description of NewsActionRecord
 * 资讯点赞记录表
 * @author shilinqing
 */
class NewsPraise extends \web\common\model\BaseModel {
    
    protected function _initialize() {
        $this->tableName = 'news_praise';
    }
    
    public function getUserRecord($user_id, $news_id){
        $where['user_id'] = $user_id;
        $where['news_id'] = $news_id;
        return $this->where($where)->find();
    }
    
}
